package edu.guet.interpreter;

public class Scale extends Expression {


    @Override
    public void execute(String playKey, double playValue) {

        String scale = "";
        switch ((int) playValue) {
            case 1:
                scale = "低音";
                break;
            case 2:
                scale = "中音";
                break;
            case 3:
                scale = "高音";
                break;
            default:
                throw new RuntimeException("Exception");
        }
        System.out.print(scale + " ");
    }
}
